﻿using System;
using System.Collections.Generic;
using System.Text;
using Pay.TO;

namespace Pay.DTO {
	/// <summary>
	/// 消息推送:mc_MessagePush
	/// </summary>
	[Serializable]
	public class message_push_dto {
		public message_push_dto() {
			ext = new Dictionary<string, object>();
		}

		/// <summary>
		/// 消息ID
		/// </summary>
		public long id { get; set; }
		/// <summary>
		/// 商户id
		/// </summary>
		public long user_id { get; set; }
		/// <summary>
		/// 消息标题
		/// </summary>
		public string title { get; set; }
		/// <summary>
		/// 内容
		/// </summary>
		public string content { get; set; }
		/// <summary>
		/// 消息短内容
		/// </summary>
		public string short_content { get; set; }
		/// <summary>
		/// 增加时间
		/// </summary>
		public DateTime create_time { get; set; }
		/// <summary>
		/// 类型
		/// </summary>
		public MsgType type { get; set; }
		/// <summary>
		/// 类型对象id
		/// </summary>
		public long? object_id { get; set; }
		/// <summary>
		/// 阅读时间
		/// </summary>
		public DateTime? read_time { get; set; }
		/// <summary>
		/// 是否已读
		/// </summary>
		public bool is_read { get; set; }
		/// <summary>
		/// 图片
		/// </summary>
		public string image_path { get; set; }
        /// <summary>
        /// URL
        /// </summary>
        public string url { get; set; }
        /// <summary>
        /// IM扩展（根据扩展中的type字段来决定UI显示）：
        /// {type:1,product_id:1,price:23.2},type=1表示扩展车源,product_id车源id,price价格;
        /// {type:2,em_at_list:["1","2"]},type=2表示at某些人,em_at_list是商户id数组
        /// </summary>
        public Dictionary<string, object> ext { get; set; }
	}
}